package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "contact_apply",comment = "用户添加好友申请表")
public class ContactApply {
    @AcColumn(name = "id",comment = "申请ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "friend_id",defaultValue = "0",comment = "好友ID",type = ColumnTypeEnums.INT)
    private Integer friend_id;

    @AcColumn(name = "remark", defaultValue = "", comment = "备注信息", type = ColumnTypeEnums.VARCHAR,length = 50, isNull = false)
    private String remark;

    @AcColumn(name = "created_at", comment = "申请时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

}
